Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mongo insert deprecated, updating #107

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

mongo insert deprecated, updating #107

wants to merge 3 commits into from

Conversation

chantorak
Copy link

@chantorak chantorak commented Apr 24, 2020

Added insertOne, marked insert as deprecated.


insertOne.prototype._fn = function(d) {
return this.collection
.then(collection =>collection.insertOne(d,this.options))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work on this PR! Would this work followed by an etl.collect(10)? I am getting doc has to be object error, which I assume means that due to a collect this is passing an array of docs. I think the docs in this PR should reflect this, remove the collect(10) in the example maybe?

@chantorak
Copy link
Author

Tests passing locally, can re-run the checks?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants